<?php
require_once('barcode.inc.php');

function generateNumber() {
    $ArNumbers = array(rand(1000, 9999));
    for( $i = 0; $i < 10; $i++ ) {
        $ArNumbers[] = rand(1000, 9999);
    }
    return implode('', $ArNumbers);
}

new BarCode(generateNumber(),0,'barcode.gif', 500, 130, true);
?>